package com.zys.exercise;

import java.util.HashMap;
import java.util.Map;

public class text2 {
    public static void main(String[] args) {
        Map<Integer,String> m =new HashMap<>();
        m.put(1,"aaa");
        m.put(2,"bbb");
        m.put(3,"ccc");
        m.put(4,"ddd");
//        Set<Map.Entry<Integer, String>> entries = m.entrySet();
        m.forEach((Integer i,String s)->{
            System.out.println(i+":"+s);
        });
    }
}
